﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="activityManager.aspx.cs" Inherits="Backstage_Pages_sysmng_activityManager" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

	<head runat="server">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="../../css/common.css">
		<link href="../../css/pagination.css" rel="stylesheet" />
		<link href="../../css/lanrenzhijia.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/main.css">
		<script type="text/javascript" src="../../js/jquery.min.js"></script>
		<script type="text/javascript" src="../../js/colResizable-1.3.min.js"></script>
		<script type="text/javascript" src="../../js/common.js"></script>
		<script type="text/javascript" src="../../js/commonjq.js"></script>
		
		<title>活动管理</title>
	</head>

	<body>
		<form id="form1" runat="server">
			<div>
				<div id="search_bar">
					<div class="box">
						<div class="box_border">
							<div class="box_top"><b class="pl15"></b></div>
							<div class="box_center pt10 pb5">
								<table class="form_table" border="0" cellpadding="0" cellspacing="0">
									<tr>
										<td class="wh100 td_center">
											<asp:Label ID="loginname" runat="server" Text="商家登录名"></asp:Label>
										</td>
										<td>
											<asp:TextBox ID="textName" runat="server" CssClass="input-text lh30 wh200"></asp:TextBox>
										</td>
										<td class="wh100 td_center">
											<asp:Button ID="btnSearch" runat="server" Text="查询" class="btn btn82 btn_search" OnClick="btnSearch_Click" />
										</td>
										<td class="wh100 td_center">
											<asp:Button ID="Button11" runat="server" Text="已审核" class="btn btn82 btn_search" OnClick="Button11_Click" />
										</td>
										<td class="wh100 td_center">
											<asp:Button ID="Button22" runat="server" Text="未审核" class="btn btn82 btn_search" OnClick="Button22_Click" />
										</td>

                                        <td class="wh140 td_left">活动成功：<%=getSuccesssNum()%></td>
                                        <td class="wh140 td_left">活动失败：<%=getFailNum()%></td>
                                        <td class="wh140 td_left">正在进行：<%=getDoingNum()%></td>
                                        <td class="wh140 td_left">待审核：<%=getNotauditNum()%></td>

									</tr>
								</table>
							</div>
						</div>
					</div>
				</div>
				<input type="button" class="btn btn82 btn_checked" value="全选" id="cbxSelAll" name="cbxSelAll" onclick="SelAllCbx()" style="margin-left: 10px">
				<input type="button" name="cbxUnSelAll" id="cbxUnSelAll" class="btn btn82 btn_nochecked" value="取消" onclick="SelAllNoCbx()">
				<asp:Button ID="btnAdd" runat="server" Text="新增" class="btn btn82 btn_add" OnClick="btnAdd_Click" />
				<asp:Button ID="Button1" runat="server" Text="修改" class="btn btn82 btn_config" OnClick="btnChangeInfo_Click" />
				<asp:Button ID="btnAudit" runat="server" Text="审核" class="btn btn82 btn_config" OnClick="btnAudit_Click" />
				<div id="table" class="pl10 pr10">
					<div>
						<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
							<tr>
								<th class="wh5percent">选择</th>
								<th class="wh10percent">商家登录名</th>
								<th class="wh5percent">申请时间</th>
								<th class="wh13percent">活动时间</th>
								<th class="wh12percent">宣传图片</th>
								<th class="wh15percent">介绍</th>
								<th class="wh10percent">商品名称</th>
								<th class="wh5percent">商品总价</th>
								<th class="wh5percent">平台收益</th>
								<th class="wh5percent">状态</th>
								<th class="wh5percent">中奖号码</th>
								<th class="wh5percent">剩余数量</th>
								<th class="wh5percent">审核人员</th>
							</tr>
							<tbody>
								<asp:Repeater ID="rptList" runat="server">
									<ItemTemplate>
										<tr class="tr">
											<td class="td_center">
												<input type="checkbox" id="ids" name="ids" value="<%#Eval(" ListId ")%>" />
											</td>
											<td class="td_center">
												<%#getUserName(Eval("SellerId"))%>
											</td>
											<td class="td_center">
												<%#Eval("ApplyTime")%>
											</td>
											<td class="td_center">
												<%#Eval("StartTime").ToString()+"--"+Eval("EndTime").ToString()%>
											</td>
											<td class="td_center">
												<asp:Image ID="Image1" runat="server" ImageUrl='<%#Eval("Url")%>' Height="50" Width="50" />
											</td>
											<td class="td_center"><input class="showdetail" maxlength="10" onclick="test(this.value);" value="<%#Eval("Introduce")%>" /></td>
											<td class="td_center">
												<%#Eval("GoodsName")%> </td>
											<td class="td_center">
												<%#Eval("Total")%> </td>
											<td class="td_center">
												<%#Eval("PlatformProfit")%> </td>
											<td class="td_center">
												<%#getStatus(Eval("Status"))%> </td>
											<td class="td_center">
												<%#Eval("WinningCode")%> </td>
											<td class="td_center">
												<%#Eval("Surplus")%> </td>
											<td class="td_center">
												<%#getUserName(Eval("ManagerId"))%> </td>
										</tr>
									</ItemTemplate>
								</asp:Repeater>
							</tbody>
						</table>
						<%if (this.rptList.Items.Count == 0)
                      { %>
                    <div id="NoDataMsg" runat="server" class="divNoDataMsg">
                        <img src="../../images/alert.gif">
                        <strong style="color: #ff0000;" />找不到相关数据！</strong>
                    </div>
                    <%} %>

						<webdiyer:AspNetPager ID="Pager" runat="server" CssClass="paginator" CustomInfoHTML="共&nbsp;%RecordCount%&nbsp;条记录，%PageSize%&nbsp;条/页，当前&nbsp;%CurrentPageIndex%/%PageCount%&nbsp;页" CustomInfoTextAlign="Right" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" OnPageChanged="Pager_PageChanged" PrevPageText="上一页" ShowCustomInfoSection="Right" ShowPageIndexBox="Always" SubmitButtonText="查看" LayoutType="Table" Width="98%" CustomInfoClass="paginator" TextAfterPageIndexBox="页&amp;nbsp;" TextBeforePageIndexBox="转到&amp;nbsp;&amp;nbsp;" ReverseUrlPageIndex="True" UrlPaging="False">
						</webdiyer:AspNetPager>
						
						<div class="theme-popover" id="shouhuoxinxi" >
							<div class="theme-poptit">
								<a href="javascript:;" title="关闭" class="close" onclick="$('#shouhuoxinxi').hide(200);">×</a>
								<h3>详细内容</h3>
							</div>
							<div class="theme-popbod dform">
								<span></span>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>
	</body>
	<script type="text/javascript">
		$(".list_table tr").mouseover(function(){
			$(".showdetail").css("background","rgb(255,225,255)");
		});
		$(".list_table tr").mouseout(function(){
			$(".showdetail").css("background","rgb(255,255,255)");
		});
		function test(aa){
			$(".showdetail").blur();
			$('#shouhuoxinxi').slideDown(200);
			$(".theme-popbod span").html(aa);
		}
	</script>
</html>
